﻿<phone:PhoneApplicationPage 
    x:Class="Subsonic.Pages.ServerSettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot contains the root grid where all other page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="24,24,0,12">
            <TextBlock x:Name="ApplicationTitle" Text="{StaticResource main_apptitle}" Style="{StaticResource PhoneTextNormalStyle}"/>
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentGrid" Grid.Row="1">
            <StackPanel x:Name="SettingsPanel" Margin="24,24,0,12">
                <TextBlock Text="{StaticResource settings_server_name}"></TextBlock>
                <TextBox x:Name="ServerName"></TextBox>
                <TextBlock Text="{StaticResource settings_server_address}"></TextBlock>
                <TextBox InputScope="Url" x:Name="ServerAddress"></TextBox>
                <TextBlock Text="{StaticResource settings_server_username}"></TextBlock>
                <TextBox x:Name="UserName"></TextBox>
                <TextBlock Text="{StaticResource settings_server_password}"></TextBlock>
                <PasswordBox x:Name="Password"></PasswordBox>
                <Button x:Name="Ping" Content="{StaticResource settings_test_connection_title}" Click="Ping_Click" ></Button>
                <StackPanel Orientation="Horizontal">
                    <toolkit:ToggleSwitch x:Name="JukeboxSwitch" Unchecked="ToggleSwitch_Unchecked" Checked="ToggleSwitch_Unchecked"></toolkit:ToggleSwitch>
                </StackPanel>
            </StackPanel>
        </Grid>
    </Grid>

</phone:PhoneApplicationPage>
